package com.tinyshardingjdbc.tinyshardingjdbc.shardingasync;

import org.springframework.scheduling.annotation.Async;

import java.util.HashMap;
import java.util.concurrent.Future;

/**
 * 分表分页模型---实现抽象类--财务有使用案例
 */
public abstract class TinyShardingAsyncService {

    @Async()
    public abstract Future<HashMap<String, Long>> asyncCount(String sql, String tableName);

    @Async()
    public abstract Future<Object> asyncQueryPage(String sql);

}
